<template>
  <div class="nav-bar">
    <ul class="nav-list">
      <router-link tag="li" class="nav-list-item" to="/home">
        <i class="iconfont bee-home"></i>
        <span>首页</span>
      </router-link>
      <router-link tag="li" class="nav-list-item" to="/category">
        <i class="iconfont bee-category"></i>
        <span>分类</span>
      </router-link>
      <router-link tag="li" class="nav-list-item" to="/cart">
        <i class="iconfont bee-cart"></i>
        <span>购物车</span>
      </router-link>
      <router-link tag="li" class="nav-list-item" to="/user">
        <i class="iconfont bee-user"></i>
        <span>我的</span>
      </router-link>
    </ul>
  </div>
</template>

<script>
export default {

}
</script>

<style lang="less">
@import '~@/common/style/mixin';
.nav-bar {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 5px 0;
  z-index: 1000;
  background-color: #fff;
  .nav-list {
    width: 100%;
    .fj();
    padding: 0;
    .nav-list-item {
      display: flex;
      flex: 1;
      flex-direction: column;
      text-align: center;
      color: #666;
      &.router-link-active {
        color: @primary;
      }
      i {
        text-align:center;
        font-size: 22px;
      }
      span {
        font-size: 12px;
      }
    }
  }
}
</style>